import { store } from '_/support'
export function dict(value, dictName) {
  if (value != undefined && value != null && dictName) {
    let dict = store._vm.$dict[dictName];
    let item = dict.find(p => p.value == value);
    return item ? item.text : value;
  } else if (dictName) {
    return value;
  }
}
